﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admins/Admin.Master" AutoEventWireup="true" CodeBehind="Template.aspx.cs" Inherits="WebApp.Admins.Template" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    </div>
    <div class="form-group">
        <label for="slt_template" class="col-sm-2 control-label">模板</label>
        <div class="col-sm-10">
            <asp:DropDownList runat="server" ID="slt_template" CssClass="form-control" OnSelectedIndexChanged="slt_template_SelectedIndexChanged" AutoPostBack="true">
            </asp:DropDownList>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label"></label>
        <label class="col-sm-10 control-label"></label>
    </div>
    <div class="form-group">
        <label for="txtContents" class="col-sm-2 control-label">内容</label>
        <div class="col-sm-10">
            <asp:TextBox runat="server" CssClass="form-control" ID="txtContents" Rows="40" Text="adf" TextMode="MultiLine" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label"></label>
        <label class="col-sm-10 control-label"></label>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <asp:Button runat="server" ID="btnSumbit" CssClass="btn btn-primary btn-lg active" Text="保存模板" OnClick="btnSumbit_Click" />
        </div>
    </div>
    <!-- 模态框（Modal） -->
    <div class="modal fade" id="myModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">保存成功!
                    </h4>
                </div>

                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        关闭
                    </button>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
